package cn.fastoo.common.entity.system;


import cn.fastoo.common.sampleframe.entity.BaseEntity;

import javax.persistence.Column;
import javax.persistence.Table;


@Table(name = "admin_system_user_log")
public class SystemLog extends BaseEntity {
	public static final Integer TYPE_LOGIN_ERROR = 10;
	public static final Integer TYPE_LOGIN_OK = 20;

	public static final Integer TYPE_USER_ADD = 30;
	public static final Integer TYPE_USER_UPDATE = 40;
	public static final Integer TYPE_USER_DELETE = 50;

	public static final Integer TYPE_AUTH_ROLE_ADD = 60;
	public static final Integer TYPE_AUTH_ROLE_UPDATE = 70;
	public static final Integer TYPE_AUTH_ROLE_DELETE = 80;

	public static final Integer TYPE_AUTH_PRIVILEGE_ADD = 90;
	public static final Integer TYPE_AUTH_PRIVILEGE_UPDATE = 100;
	public static final Integer TYPE_AUTH_PRIVILEGE_DELETE = 110;

	public static final Integer TYPE_AUTH_ORGAN_ADD = 120;
	public static final Integer TYPE_AUTH_ORGAN_UPDATE = 130;
	public static final Integer TYPE_AUTH_ORGAN_DELETE = 140;

	public static final Integer TYPE_AUTH_MENU_ADD = 150;
	public static final Integer TYPE_AUTH_MENU_UPDATE = 160;
	public static final Integer TYPE_AUTH_MENU_DELETE = 170;


	public static final Integer TYPE_BI_SOLUTION_ADD = 180;
	public static final Integer TYPE_BI_SOLUTION_UPDATE = 190;
	public static final Integer TYPE_BI_SOLUTION_DELETE = 200;

	public static final Integer TYPE_BI_APPLICATION_ADD = 210;
	public static final Integer TYPE_BI_APPLICATION_UPDATE = 220;
	public static final Integer TYPE_BI_APPLICATION_DELETE = 230;

	public static final Integer TYPE_AUTH_OPE_ADD = 240;
	public static final Integer TYPE_AUTH_OPE_UPDATE = 250;
	public static final Integer TYPE_AUTH_OPE_DELETE = 260;



	@Column(name = "type")
	private Integer type;

	@Column(name = "admin_system_user_id")
	private Long userId;

	@Column(name = "content")
	private String content;



	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}
}